package cn.sw.common.database.domain.entity;

import cn.sw.common.database.architecture.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 文章表
 * @author 张众森 (个人博客:https://)
 * @date 2025-07-07
 * @tags 做一个优秀的全栈架构
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("sys_articles")
@ApiModel(value = "Articles对象", description = "文章表")
public class Articles extends BaseEntity {
    /**
     * 文章标题
     */
    @ApiModelProperty("文章标题")
    @TableField("title")
    private String title;
    /**
     * 文章内容
     */
    @ApiModelProperty("文章内容")
    @TableField("content")
    private String content;
    /**
     * 文章发布时间
     */
    @ApiModelProperty("文章发布时间")
    @TableField("publish_date")
    private LocalDateTime publishDate;
}